<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/static/db/connect.php');
$tableName = "qt_software_box";
$sql = " select id,name,img,outline,win,mac,all_ver,win_version,version from $tableName ORDER BY sort DESC, id ";
include($_SERVER['DOCUMENT_ROOT'] . "/includes/common_paging.php");
?>
<?php foreach ($rows as $row): ?>
    <p class="notification-page-item">
        <?php if ($row['img']) { ?>
            <img src="<?php echo $row['img']; ?>" alt="img">
        <?php } ?>
        <em>
            <span class="myp"><?php echo $row['name']; ?></span><br>
            <?php echo $row['outline']; ?>
        </em>
        <?php if ($row['all_ver']) { ?>
            <a href="<?php echo $row['all_ver']; ?>"
               onmouseover="showTitle(this,'版本: <?php echo $row['version']; ?>');"
               onmouseout="layer.close(i);">ALL</a>
            <a href="javascript:;"><?php echo $row['version']; ?></a>
        <?php } else { ?>
            <?php if ($row['mac']) { ?>
                <a href="<?php echo $row['mac']; ?>"
                   onmouseover="showTitle(this,'版本: <?php echo $row['version']; ?>');"
                   onmouseout="layer.close(i);">MAC</a>
            <?php } ?>
            <?php if ($row['win']) { ?>
                <a href="<?php echo $row['win']; ?>"
                   onmouseover="showTitle(this,'版本: <?php echo $row['win_version']; ?>');"
                   onmouseout="layer.close(i);">WIN</a>
            <?php } ?>
        <?php } ?>
    </p>
    <div class="decoration"></div>
<?php endforeach; ?>
